<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>用户中心</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="keywords" content="">
  <meta name="description" content="">
  {include file="public/css"}
</head>
<body>

<!-- 头部开始 -->
{include file="public/header"}
<!-- 头部结束 -->

<div class="layui-main fly-marginTop fly-user-main ">

<div class="user-left-menu" style=""> 

<!-- 用户中心导航菜单 -->
{include file="public/left_menu"}
</div>
        <div class="fly-panel fly-panel-user user-right-content" pad20>

        <div class="layui-tab layui-tab-brief" lay-filter="user">
            <ul class="layui-tab-title" id="LAY_mine">
               <li class="layui-this"><a href="{:url('user/finance/recharge')}">我要充值</a></li>
               <li ><a href="{:url('user/finance/rechargeRecord')}">充值列表</a></li>
     
            </ul>
              <div class="layui-tab-content" style="padding: 20px 0;">
                 <form class="layui-form" action="{:url('pay/index')}"  method="post" target="_blank">
                  <div class="layui-form-item">
                    <label class="layui-form-label">我的资产：</label>
                    <div class="layui-input-block">
                       <div class="layui-form-mid layui-word-aux "><span class="orange">￥ {$user.money} 元</span></div>
                    </div>
                  </div>
                  <div class="layui-form-item">
                    <label class="layui-form-label">充值金额：</label>
                    <div class="layui-input-inline">
                      <input type="text" name="money"  placeholder="请输入充值金额" autocomplete="off" class="layui-input"> 
                    </div>
                      <div class="layui-input-inline">
                    <div class="layui-form-mid layui-word-aux">元</div>
                    </div>
                  </div>
                  <div class="layui-form-item">
                    <label class="layui-form-label">充值方式：</label>
                    <div class="layui-input-inline">
                       <input type="radio" name="type" value="alipay" title="支付宝" checked>
                    </div>
                    
                  </div>                

                  <div class="layui-form-item">
                    <div class="layui-input-block">
                      <button class="layui-btn layui-btn-normal" id="form-botton" lay-submit lay-filter="form">确认充值</button>
                   
                    </div>
                  </div>
                  </form>
             </div>

           </div>
           </div>
        </div>
        </div>
    
</div>
{include file="public/js"}
<!-- 会员底部文件 -->
{include file="public/footer"}



<script>

layui.use(['form','table','laypage','laydate'], function(){
  var form = layui.form;
  var laypage = layui.laypage; 
  var laydate = layui.laydate;
  var table = layui.table;


  //监听提交
  // form.on('submit(form)', function(data){
  //   var url = "{:url('pay/index')}";
  //   $.post(url,data.field,function(json){
  //      if(json.code ==0 ){
  //          location.href=json.data.url;
  
  //      }else{
  //            layer.msg(json.msg);
  //      }

    
  //   });
  //   return false;
  // });





});
</script>

</body>
</html>